export const NoticeTable = [
  { value: 'id', label: 'ID' },
  { value: 'community.name', label: '小区名称' },
  { value: 'title', label: '标题' },
  { value: 'pic_url', label: '封面图' },
  { value: 'type', label: '类型' },
  { value: 'status', label: '状态' },
  { value: 'sort', label: '权重 ' },
]
// 获取信息状态
export const useNoticeState = (needAll = false) => {
  let stateList = [
    { label: '启用', value: 1 },
    { label: '关闭', value: 0 },
  ]
  if (needAll) stateList.unshift({ label: '未知', value: '' })
  return stateList
}
// 获取信息状态
export const useTypeState = (needAll = false) => {
  let typeList = [
    { label: '通知 ', value: 1 },
    { label: '公告', value: 2 },
  ]
  if (needAll) typeList.unshift({ label: '未知', value: '' })
  return typeList
}